package team.knowers.tourist.service;

import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.tourist.dao.entity.BookingDO;
import team.knowers.tourist.dto.req.BookingCreateReqDTO;
import team.knowers.tourist.dto.req.PaymentCreateReqDTO;

import java.util.List;

public interface BookingService  extends IService<BookingDO> {
    /**
     * 创建预订订单
     * @param req
     * @return
     */
    Integer createBooking (BookingCreateReqDTO req);
    /**
     * 取消预订
     */
    void cancelBooking(int bookingId);
    /**
     * 查看预订记录
     */
    List<BookingDO> viewBooking(int touristId);
    /**
     * 查询单个预订信息
     */
    BookingDO findBooking(int booking);
}
